<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;
// use Think\Controller;
// use User\Api\UserApi;
use Think\Controller\RestController;
// use Com\Wechat\lib\WxPayApi;
// use Com\Wechat\lib\WxPayConfig;
use Com\Wechat\Jssdk\Jssdk;
// use Think\Exception;

class WechatController extends RestController {
  public function getSignPackage(){
    $url = I('get.url');
    $jssdk = new Jssdk();
    $signPackage = $jssdk->getSignPackage($url);
    $this->response($signPackage, 'JSON');
  }
}
